package com.ruoyi.wifiauth.domain;

import com.ruoyi.common.core.web.domain.BaseEntity;
import com.ruoyi.common.core.annotation.Excel;

/**
 * WiFi认证日志表 wifi_auth_log
 */
public class WifiAuthLog extends BaseEntity {
    private static final long serialVersionUID = 1L;

    private Long id;

    @Excel(name = "会话ID")
    private String sessionId;

    @Excel(name = "设备ID")
    private String deviceId;

    @Excel(name = "用户IP地址")
    private String userIp;

    @Excel(name = "微信OpenID")
    private String openid;

    @Excel(name = "连接状态", readConverterExp = "0=处理中,1=成功,2=失败")
    private Integer status;

    @Excel(name = "是否观看广告", readConverterExp = "0=否,1=是")
    private Integer adViewed;

    @Excel(name = "认证耗时(毫秒)")
    private Integer authDuration;

    @Excel(name = "失败原因")
    private String errorMsg;

    // Getter and Setter methods
    public Long getId() { return id; }
    public void setId(Long id) { this.id = id; }

    public String getSessionId() { return sessionId; }
    public void setSessionId(String sessionId) { this.sessionId = sessionId; }

    public String getDeviceId() { return deviceId; }
    public void setDeviceId(String deviceId) { this.deviceId = deviceId; }

    public String getUserIp() { return userIp; }
    public void setUserIp(String userIp) { this.userIp = userIp; }

    public String getOpenid() { return openid; }
    public void setOpenid(String openid) { this.openid = openid; }

    public Integer getStatus() { return status; }
    public void setStatus(Integer status) { this.status = status; }

    public Integer getAdViewed() { return adViewed; }
    public void setAdViewed(Integer adViewed) { this.adViewed = adViewed; }

    public Integer getAuthDuration() { return authDuration; }
    public void setAuthDuration(Integer authDuration) { this.authDuration = authDuration; }

    public String getErrorMsg() { return errorMsg; }
    public void setErrorMsg(String errorMsg) { this.errorMsg = errorMsg; }
} 